/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const wechatUserRouter = {
  name: 'product',
  path: '/product',
  component: Layout,
  redirect: '/product/list',
  isDiyPath: true,
  meta: {
    title: '产品管理',
    icon: 'example'
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views-antd/product/list'),
      name: 'ProductList',
      isDiyPath: true,
      meta: {
        title: '产品列表',
        icon: 'wechat',
        noCache: true,
        activeMenu: '/product/list'
      }
    },
    {
      path: 'add',
      component: () => import('@/views-antd/product/add'),
      name: 'addProduct',
      isDiyPath: true,
      meta: {
        title: '添加产品',
        icon: 'wechat',
        noCache: true,
        activeMenu: '/product/add'
      }
    }
  ]
}

export default wechatUserRouter
